<div class="page page-address-details" ng-init="init()">
  <div class="title">{{ngDialogData.address_id ? '修改' : '添加'}}收货地址</div>
  <div class="page-content">
    <form name="addressForm" class="bhz-form">
      <div class="form-group form-group-inline fullname">
        <label class="label">收货人姓名</label>
        <input type="text" name="telephone" class="bhz-input form-control input-fullname" ng-model="address.fullname" placeholder="请输入收货人姓名">
      </div>
      <div class="form-group form-group-inline telephone">
        <label class="label">联系电话</label>
        <input type="text" name="telephone" class="bhz-input form-control input-telephone" ng-model="address.shipping_telephone" placeholder="请输入收货人手机号">
      </div>
      <div class="form-group form-group-inline company">
        <label class="label">公司名称</label>
        <input type="text" name="company" class="bhz-input form-control input-company" ng-model="address.company" placeholder="请输入公司名称">
      </div>
      <div class="form-group bhz-select address-item location">
        <span class="label">省份：</span>
        <span class="input-wrap">
         <select dir="rtl" name="province" class="input-select" ng-change="setProvince();" ng-model="address.country_id" ng-options="province.id as province.name for province in address_json"></select>
         <i class="icon icon-image icon-arrow-down"></i>
       </span>
      </div>
      <div class="form-group bhz-select address-item location">
        <span class="label">城市：</span>
        <span class="input-wrap">
         <select dir="rtl" name="city" class="input-select" ng-change="setCity();" ng-model="address.zone_id" ng-options="city.id as city.name for city in selectedProvince.zone">
         </select>
         <i class="icon icon-image icon-arrow-down"></i>
       </span>
      </div>
      <div class="form-group bhz-select address-item location">
        <span class="label">区域：</span>
        <span class="input-wrap">
         <select dir="rtl" name="area" class="input-select" ng-model="address.city_id" ng-options="area.id as area.name for area in selectedCity.city"></select>
         <i class="icon icon-image icon-arrow-down"></i>
       </span>
      </div>
      <div class="form-group address-item area">
        <span class="label">详细地址：</span>
        <span class="input-wrap">
         <textarea name="address" ng-model="address.address" placeholder="请输入详细地址" rows=2 required maxlength="50"></textarea>
       </span>
      </div>

      <div class="form-group bhz-form-group default">
        <label class="label">是否为常用地址</label>
        <input type="checkbox" name="default" class="bhz-checkbox form-control " ng-model="address.default">
      </div>

      <div class="btn-wrap">
        <a href="javascript:void(0);" class="btn btn-submit btn-fullwidth" ng-click="submit();">保存地址</a>
      </div>
    </form>
  </div>
</div>
